package service.impl;

import java.util.List;

import dao.RainManageDao;
import dao.impl.RainManageDaoImpl;
import entity.RainManage;
import service.RainManageService;

public class RainManageServiceImpl implements RainManageService {

	
	private RainManageDao rmd = new RainManageDaoImpl();
	
	@Override
	public List<RainManage> getAllRain() {
		return rmd.getAllRain();
	}

	@Override
	public boolean addRain(RainManage rm) {
		int count = rmd.addRain(rm);
		if(count > 0){
			return true;
		}
		return false;
	}

	@Override
	public boolean deleteRain(int id) {
		int count = rmd.deleteRain(id);
		if(count > 0){
			return true;
		}
		return false;
	}

}
